﻿namespace Imagine.Infrastructure.FiniteStateMachines
{
    public static class FsmStateExtensions
    {
        public static void ChangeState<TState>(this IFSMStateMachine stateMachine) where TState : FsmState => stateMachine.ChangeState(typeof(TState).FullName);
        public static void ChangeState<TState>(this IFSMGroupState   stateGroup) where TState : FsmState   => stateGroup.ChangeState(typeof(TState).FullName);
    }
}